<?php
/**
 * Created by 项目.
 * User: xuguopeng
 * Date: 2020-05-29
 * Time: 10:02
 */

namespace app\api\validate\facility;


use LinCmsTp5\validate\BaseValidate;

class CheckFacility extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:50',
        'sort_id' => 'require|isPositiveInteger',
    ];

    protected $message = [
        'name' => '请输入设施名称且长度不大于50字符',
        'sort_id' => '请选择正确的设施分类',
    ];
}